          <!-- START OF MAINCOL -->
          <div class="MainCol AddEbookPage">
          	  <h1>咨询师信息编辑</h1>
              <span class="NormalFont SmallFont">
                  <?= CHtml::image(Yii::app()->baseUrl.'/images/home_icon.gif', '主页'); ?> > 咨询师信息管理 > 咨询师信息编辑
               </span><br /><br />
              <div class="Titlebox box"><!-- DON'T DELETE --></div>
              
              <?php if($psychologist->hasErrors()):  echo CHtml::errorSummary($psychologist); elseif(isPost()): ?>
              <div class="SuccessfulBox Smallbox">
                <span class="Successful"> 咨询师信息成功保存。</span>
              </div>
              <?php endif; ?>
              
              <?php if(Yii::app()->user->hasFlash('message')) : ?>
              <div class="SuccessfulBox Smallbox">
                <span class="Successful"> <?php echo Yii::app()->user->getFlash('message'); ?></span>
              </div>
              <?php endif; ?>
              
              <?= CHtml::form(array('admin/psychologists/update/', 'id' => $psychologist->psychologistId), 'POST', array('name' => 'animCreate', 'enctype' => 'multipart/form-data')); ?>
              <?php echo CHtml::activeHiddenField($psychologist, 'avatar'); ?>
              <div class="Smallbox"><label>姓名<span class="Red">*</span></label>
              <?= CHtml::activeTextField($psychologist, 'psychologistName', array('class' => 'TxtInput')); ?>
              </div>

              <div class="Smallbox"><label>相片<span class="Red">*</span></label>
              <?= CHtml::activeFileField($psychologist, 'uploadedImage', array('class' => 'SmallerBox', 'size' => '32')); ?>
              </div>
              
              <div class="Smallbox"><label>&nbsp;</label>
					<?php echo CHtml::image(Psychologists::avatarUrl($psychologist->avatar), $psychologist->psychologistName); ?>
              </div>
              
              <div class="Smallbox"><label>&nbsp;</label>
                  	<p class="Smallerbox NormalFont SmallFont">图像尺寸 (像素) : 160 x 120<br />图像格式 : JPG, GIF, PNG</p>
              </div>

              <div class="Smallbox"><label>咨询方向</label>
              <input type="text" class="TxtInput" name="direction" value="<?php echo isset($psychologist->direction) ? $psychologist->direction->metaValue : ''; ?>" />
              </div>
              
              <div class="Smallbox"><label>简介</label>
              <?= CHtml::activeTextarea($psychologist, 'psychologistInstro', array('class' => 'Textarea')); ?>
              </div>
              
              <div class="Smallbox"><label>邮箱</label>
              <?= CHtml::activeTextField($psychologist, 'psychologistEmail', array('class' => 'TxtInput')); ?>
              </div>
              
              <div class="Smallbox"><label>QQ</label>
              <?= CHtml::activeTextField($psychologist, 'psychologistQq', array('class' => 'TxtInput')); ?>
              </div>
              
              <div class="Smallbox"><label>博客空间地址</label>
              <?= CHtml::activeTextField($psychologist, 'psychologistUrl', array('class' => 'TxtInput')); ?>
              </div>
              
              <div class="Smallbox"><label>QQ 在线代码</label>
              <?= CHtml::activeTextField($psychologist->qqCode, 'metaValue', array('class' => 'TxtInput')); ?><br /> 在 <a href="http://wp.qq.com/" target="_blank">http://wp.qq.com/</a> 生成
              </div>
              
              <div class="Smallbox"><label>关联用户 ID</label>
              <?= CHtml::activeTextField($psychologist, 'userId', array('class' => 'TxtInput')); ?>
              </div>
              
              <div class="Smallbox"><label>排序</label>
              <?= CHtml::activeTextField($psychologist, 'sortOrder', array('class' => 'TxtInput')); ?>
              </div>
              
              <div class="Smallbox"><label>是否为专职咨询师</label>
              <?= CHtml::activeDropDownList($psychologist, 'isMajor', array(0 => '否', 1 => '是'), array('class' => 'TxtInput')); ?>
              </div>
              
              <div class="Smallbox btnBox"><label>&nbsp;</label>
              	  <?= CHtml::submitButton('保存', array('title' => '保存', 'name' => 'submitPost')); ?>
                  <br class="clear" />
              </div>
              <?= CHtml::endForm(); ?>
              <div class="Midbox Red SmallFont">带 * 为必填项</div>
              
          </div>
          <!-- END OF MAINCOL -->